﻿using Avalon.Core.Providers;
using System.Web.Mvc;

namespace Avalon.Core.MVC {
    public class AvalonRazorView : RazorView {
        public AvalonRazorView(ControllerContext controllerContext, IRendererDescriptor renderDescriptor)
            : base(controllerContext,
            string.Format("~/Views/{0}/{1}.cshtml", renderDescriptor.FolderName, renderDescriptor.ViewName),
            "~/Views/Shared/_Layout.cshtml", true, new[] { "~/Views" }) {
        }
    }
}
